<!--
  @author wangjie
  @since 2019/11/19
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--搜索条件置于单独的layui-card-body中
    与表格平级(表格置于另一layui-card-body种)
    -->
<div class="layui-card-body" th:fragment="query">

    <!--每个zmn-form-item一行，每行4列
        支持页面自适应，1280分辨率下不折行
        -->
    <div class="zmn-form-item">
        <!--默认情况下标签item-inline占据1列-->
        <div class="item-inline">
            <label class="inline-label">投放APP:&nbsp;</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <!--默认情况下标签box-input-inline占满整个inline-box-cc标签-->
                    <div class="box-input-inline">
                        <div class="box-input-inline">
                            <select name="app" id="app" lay-filter="app">
                                <option value="">请选择</option>
                                <option th:each="item:${pushAppVts}"
                                        th:value="${item.value}"
                                        th:selected="${item.value == vo.app}"
                                        th:text="${item.text}">
                                </option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="item-inline">
            <label class="inline-label">投放类型:&nbsp;</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <!--默认情况下标签box-input-inline占满整个inline-box-cc标签-->
                    <div class="box-input-inline">
                        <select name="putType" id="putType" lay-filter="putType">
                            <option value="">请选择</option>
                            <option th:each="item:${pushType}"
                                    th:value="${item.value}"
                                    th:selected="${item.value == vo.putType}"
                                    th:text="${item.text}">
                            </option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">所属分类:&nbsp;</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="noticeCategoryId" id="noticeCategoryId" lay-filter="noticeCategoryId">
                            <option value="">请选择</option>
                            <option th:each="item:${pushNoticeCategory}"
                                    th:value="${item.value}"
                                    th:selected="${item.value == vo.noticeCategoryId}"
                                    th:text="${item.text}">
                            </option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">有效时间:&nbsp;</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <!--默认情况下标签box-input-inline占满整个inline-box-cc标签-->
                    <div class="box-input-inline">
                        <input type="text" name="beginTimeStr" lay-filter="beginTimeStr" id="beginTimeStr"
                               placeholder="请选择生效时间范围"
                               th:value="${vo.beginTimeStr}"
                               autocomplete="off" class="layui-input"/>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="zmn-form-item">
        <div class="item-inline">
            <label class="inline-label">创建时间:&nbsp;</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <!--默认情况下标签box-input-inline占满整个inline-box-cc标签-->
                    <div class="box-input-inline">
                        <input type="text" name="createTimeStr" id="createTimeStr" lay-filter="createTimeStr"
                               placeholder="请选择生效创建时间范围"
                               th:value="${vo.createTimeStr}"
                               autocomplete="off" class="layui-input"/>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline col2">
            <label class="inline-label">发布部门：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <!--默认情况下标签box-input-inline占满整个inline-box-cc标签
                        加入样式col2，表示可放置2个box-input-inline，两者平均宽度，同理col3表示可放置3个
                        -->
                    <div class="box-input-inline col2">
                        <select name="deptOneId" id="deptOneId" lay-filter="deptOneId">
                            <option value="">直接选择或搜索选择</option>
                            <option th:each="item:${oneDept}"
                                    th:selected="${item.value == vo.deptOneId}"
                                    th:value="${item.value}"
                                    th:text="${item.text}"></option>
                        </select>
                    </div>
                    <div class="box-input-inline col2">
                        <select name="deptTwoId" id="deptTwoId" value="0">
                            <option value="">直接选择或搜索选择</option>
                            <option th:each="item:${towDept}"
                                    th:value="${item.value}"
                                    th:selected="${item.value == vo.deptTwoId}"
                                    th:text="${item.text}"></option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <!--查询与重置按钮
          查询按钮lay-filter属性统一定义为zmn-form-submit
          如查询条件较多，为节省横向空间，查询按钮使用小按钮(无文字“查询”)
          -->
        <div class="item-submit">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="zmn-form-submit"><i class="layui-icon">&#xe615;</i>
            </button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm" lay-submit=""
                    lay-filter="zmn-form-reset"><i class="layui-icon">&#xe669;</i>
            </button>

        </div>
    </div>

</div>


